package com.gitee.magic.framework.head.vo;

import java.io.Serializable;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author start
 */
public class QueryVO<E> implements Serializable {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Schema(description = "分页数据")
	private List<E> data;
	
	@Schema(description = "总记录数")
	private Integer total;
	
	public QueryVO() {}
	
	public QueryVO(List<E> data,Integer total) {
		this.data=data;
		this.total=total;
	}

	public List<E> getData() {
		return data;
	}

	public void setData(List<E> data) {
		this.data = data;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	@Override
	public String toString() {
		return "QueryVO{" +
				"data=" + data +
				", total=" + total +
				'}';
	}
}
